package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ContractJob {
    @Autowired
    private IContractService contractService;

    /**
     * 定时更新合同状态
     */
    @Scheduled(cron = "0 0 23 * * *", zone = "GMT+8")

    public void updateContract() {
        contractService.updateContractStatus();
    }


}
